package com.relytosoft.mizar.media.system.services.api.impl;

import com.relytosoft.dubhe.common.core.object.ResponseResult;
import com.relytosoft.mizar.media.system.api.entity.SysRelatedPlatform;
import com.relytosoft.mizar.media.system.api.pojo.dto.DistrictFeignDto;
import com.relytosoft.mizar.media.system.api.feign.SystemFeignInService;
import com.relytosoft.mizar.media.system.services.service.DistrictSyncService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author Jierry
 * @version 2022/4/20.
 */
@Service
public class SystemFeignInServiceImpl implements SystemFeignInService {

    @Resource
    private DistrictSyncService districtSyncService;

    @Override
    public ResponseResult<List<SysRelatedPlatform>> selectDistrictRelatedList() {
        return ResponseResult.ok(districtSyncService.selectRelatedPlatformList());
    }

    @Override
    public ResponseResult<List<DistrictFeignDto>> selectDistrictList() {
        return ResponseResult.ok(districtSyncService.selectDistrictList());
    }
}
